flutter check if string is number dart

83

bool isNumeric(String s) {
 if (s == null) {
   return false;
 }
 return double.tryParse(s) != null;
}

Comments

Submit
0 Comments